{% extends 'layout.html' %}


{% block content %}
    <div class="container">
        <!--加上enctype="multipart/form-data"属性获取文件上传的内容-->
        <form method="post" enctype="multipart/form-data">
            {% csrf_token %}
            <input type="text" name="username">
            <input type="file" name="avatar">
            <input type="submit" value="提交">

        </form>
    </div>

{% endblock %}